package service

import (
	"log"
	"net/http"
	"xiaoniu-registry/internal/cache"
	"xiaoniu-registry/internal/response"
)

// ListHandler 获取服务列表
func ListHandler(w http.ResponseWriter, req *http.Request) {
	log.Printf("Querying service list")
	serviceList := cache.QueryServiceList()
	response.Success(w, serviceList)
}
